<form class="form-horizontal form-validate form-modal" method="post" action="{:url('editSuperior')}">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">修改所属上级</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label class="col-sm-3 control-label">用户ID：</label>
                    <div class="col-sm-6 m-t-mc">
                        {$row.user_id}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">用户手机：</label>
                    <div class="col-sm-6 m-t-mc">
                        {$row.byUser.mobile}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">代理身份：</label>
                    <div class="col-sm-6 m-t-mc">
                        {$row.proxyLevel.proxy_name}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">当前所属上级：</label>
                    <div class="col-sm-6 m-t-mc">
                        {if condition="$row.pid >0"}
                        {$row.puser.byUser.real_name} - {$row.puser.byUser.mobile} - {$row.puser.proxyLevel.proxy_name}
                        {else/}
                        顶级（上级为平台）
                        {/if}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">修改上级：</label>
                    <div class="col-sm-9 " >
                        <input type="text" class="input-small"  id="user_keyword" value="" style="width:120px;" /> <a href="javascript:;" class="m-xs" title="查看"  onclick="searchProxyUser('user_keyword','select_user');"><i class="fa fa-search text-muted"></i></a>
                        <select id="select_user" name="select_user"  style="width: 230px; " >
                            <option value="0">选择用户</option>
                        </select>
                        <label><input type="checkbox" name="setTopUser" value="1"> 设为顶级（上级为平台）</label>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <input type="hidden" value="{$row.user_id}" name="user_id" />
                <button type="submit" class="btn btn-primary" data-loading-text="保存中..." disabled>确定修改</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</form>

